package pe.cliente.proyecto.controller.mant;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import pe.adra.core.ext.soporte.GridView;
import pe.adra.core.ext.soporte.SuportEntidad;
import pe.adra.core.mvc.ADRAMantBaseController;
import pe.adra.core.mvc.controllers.ADRAMantController;
import pe.adra.util.exception.ValidarException;
import pe.cliente.proyecto.bean.AsientoBean;

/**
 * Handles requests for the application home page.
 */
@Controller
@RequestMapping("/asiento")
public class AsientoController extends ADRAMantController<AsientoBean> implements ADRAMantBaseController<AsientoBean>{
	
	private static final Logger log = LoggerFactory.getLogger(AsientoController.class);

	@Override
	public List<Map<String, Object>> listarMap(AsientoBean filtro, Date finit, Date ffin, int inicio, int fin, String strSort, String strOrder, SuportEntidad... innerjoin) {
		// TODO Auto-generated method stub
		
		filtro.getEntidad();
		
		return null;
	}

	@Override
	public List<Map<String, Object>> listarMap(GridView filtro, Date finit, Date ffin) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public List<AsientoBean> listar(AsientoBean filtro, Date finit, Date ffin, int inicio, int fin, String strSort, String strOrder, SuportEntidad... innerjoin) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<AsientoBean> listar(GridView filtro, Date finit, Date ffin) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public AsientoBean guardar(AsientoBean entidad) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int activo(AsientoBean entidad) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public AsientoBean obtener(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void validar(AsientoBean entidad) throws ValidarException {
		// TODO Auto-generated method stub
		
	}

	
	
	
	
//	/**
//	 * Simply selects the home view to render by returning its name.
//	 */
//	@RequestMapping(value = "/", method = RequestMethod.GET)
//	public String home(Locale locale, Model model) {
//		logger.info("Welcome home! The client locale is {}.", locale);
//		
//		Date date = new Date();
//		DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);
//		
//		String formattedDate = dateFormat.format(date);
//		
//		model.addAttribute("serverTime", formattedDate );
//		
//		return "home";
//	}
//	
}
